package com.khalil.kkadmin.module.ai.application.domain;

import com.khalil.kkadmin.infrastructure.jpa.domain.EntityBase;
import com.khalil.kkadmin.module.ai.model.AiModel;
import jakarta.persistence.Entity;
import jakarta.persistence.EntityListeners;
import jakarta.persistence.Table;
import jakarta.persistence.Transient;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

@Table(name = "ai_application")
@Entity
@EntityListeners(AuditingEntityListener.class)
@EqualsAndHashCode(callSuper = true)
@Data
public class AiApplication extends EntityBase<Long> {
    private String name;

    private String description;

    private Long modelId; // 模型ID

    @Transient
    private AiModel model;

    private Long knowledgeBaseId; // 知识库ID

    private String tips;

    private Float temperature;

    private Integer maxTokens;

    private String logoUrl;
}
